package com.example.dockerdemo.configuration;

import com.example.dockerdemo.Person;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * @PACKAGE_NAME: com.example.dockerdemo.configuration
 * @NAME: SpringConfiguration
 * @description: 配置类
 * @DATE: 2024/5/10
 * @USER: fz
 **/
@Configuration
@ComponentScan("com.example")
@EnableAspectJAutoProxy
public class SpringConfiguration {

    @Bean
    public Person person()
    {
        return new Person("fz", 18, "男", "北京");
    }
}
